﻿<Window x:Class="Bai2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="622" Loaded="Window_Loaded">
    <Grid>
        <Label Content="Quản Lý Thông Tin Sinh Viên" Height="38" HorizontalAlignment="Left" Margin="95,0,0,0" Name="label1" VerticalAlignment="Top" FontWeight="Bold" Width="357" FontSize="23" />
        <Label Content="Mã SV:" Height="28" HorizontalAlignment="Left" Margin="12,44,0,0" Name="label2" VerticalAlignment="Top" />
        <Label Content="Mã Khoa:" Height="28" HorizontalAlignment="Left" Margin="12,78,0,0" Name="label3" VerticalAlignment="Top" />
        <Label Content="Họ SV:" Height="28" HorizontalAlignment="Left" Margin="149,44,0,0" Name="label4" VerticalAlignment="Top" />
        <Label Content="Ngày Sinh:" Height="28" HorizontalAlignment="Left" Margin="149,78,0,0" Name="label5" VerticalAlignment="Top" />
        <Label Content="Tên SV:" Height="28" HorizontalAlignment="Left" Margin="349,44,0,0" Name="label6" VerticalAlignment="Top" />
        <Label Content="Giới Tính:" HorizontalAlignment="Left" Margin="349,80,0,203" Name="label7" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="70,44,0,0" Name="textBox1" VerticalAlignment="Top" Width="62" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="70,78,0,0" Name="textBox2" VerticalAlignment="top" Width="62" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="218,44,0,0" Name="textBox3" VerticalAlignment="Top" Width="116" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="437,44,0,0" Name="textBox5" VerticalAlignment="Top" Width="116" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="437,80,0,0" Name="textBox6" VerticalAlignment="Top" Width="116" />
        <Button Content="Thêm" Height="23" HorizontalAlignment="Left" Margin="12,0,0,13" Name="Them" VerticalAlignment="Bottom" Width="75" Click="Them_Click" />
        <Button Content="Sửa" Height="23" HorizontalAlignment="Left" Margin="103,0,0,13" Name="Sua" VerticalAlignment="Bottom" Width="75" />
        <Button Content="Xóa" Height="23" HorizontalAlignment="Right" Margin="0,0,320,13" Name="Xoa" VerticalAlignment="Bottom" Width="75" />
        <Button Content="Lưu" Height="23" HorizontalAlignment="Right" Margin="0,0,220,13" Name="Luu" VerticalAlignment="Bottom" Width="75" />
        <Button Content="Hủy" Height="23" HorizontalAlignment="Left" Margin="396,0,0,13" Name="Huy" VerticalAlignment="Bottom" Width="75" />
        <Button Content="Thoát" Height="23" HorizontalAlignment="Left" Margin="495,0,0,13" Name="Thoat" VerticalAlignment="Bottom" Width="75" />
        <DataGrid AutoGenerateColumns="False" Height="156" HorizontalAlignment="Left" Margin="21,107,0,0" Name="dataGrid" VerticalAlignment="Top" Width="549" >

            <DataGrid.Columns>
                <DataGridTextColumn Header="Mã SV" Width="100" Binding="{Binding Masv}"></DataGridTextColumn>
                <DataGridTextColumn Header="Ho SV" Width="100" Binding="{Binding Hosv}"></DataGridTextColumn>
                <DataGridTextColumn Header="Tên SV" Width="100" Binding="{Binding Tensv}"></DataGridTextColumn>
                <DataGridTextColumn Header="Ngày Sinh" Width="100" Binding="{Binding NgaySinh}"></DataGridTextColumn>
                <DataGridTextColumn Header="Giới Tính" Width="100" Binding="{Binding GioiTinh}"></DataGridTextColumn>
                <DataGridTextColumn Header="Mã Khoa" Width="100" Binding="{Binding MaKhoa}"></DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>
        <DatePicker Height="25" HorizontalAlignment="Right" Margin="0,76,267,0" Name="textBox4" VerticalAlignment="Top" Width="115" />
    </Grid>
</Window>
